﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="GroupPictureList.aspx.cs" Inherits="Jzy.Web.SiteAdmin.Picture.GroupPictureList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        ul.pic_group li
        {
            margin: 0px;
            padding: 0px;
            width: 112px;
            list-style-type: none;
            float: left;
            margin-left: 20px;
        }
        ul.pic_group li a.img
        {
            width: 112px;
            height: 112px;
            background-image: url(../../common/style/skin1/images/photo_v2.png);
            background-position: 0px -157px;
            background-repeat: no-repeat;
            display: block;
            text-align: center;
            border-width: 0px;
        }
        ul.pic_group li a.img:hover
        {
            background-position: -117px -157px;
        }
        ul.pic_group li div
        {
            height: 25px;
            line-height: 25px;
            width: 110px;
            overflow: hidden;
            white-space: nowrap;
        }
        .pic_edit
        {
            visibility: hidden;
        }
        .gray
        {
            color: Gray;
        }
        #content .pic_group li img
        {
            max-height: 105px;
            max-width: 105px;
        }
    </style>

    <script type="text/javascript">
        function chk_click(chk, strID)
        {
            var hid = document.getElementById('<%=hidSelectIDs.ClientID %>');
            var idValue = hid.value;
            if (chk.checked)
            {
                if (idValue == "")
                {
                    idValue = ",";
                }

                if (idValue.indexOf("," + strID + ",") < 0)
                {
                    idValue += strID + ",";
                }
            }
            else
            {
                idValue = idValue.replace("," + strID + ",", ",");
                if (idValue == ",")
                {
                    idValue = "";
                }

            }
            hid.value = idValue;

        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hidOrders" runat="server" />
    <div id="toolbar">
        <ul>
            <li style="width: 100px;"><a id="lnkAdd" runat="server" href="javascript:go()"><span>
                <b style="background-image: url(../../common/images/icons/addnew.gif);">&nbsp;</b><asp:Literal
                    ID="Literal1" runat="server" Text="上传图片"></asp:Literal></span></a></li>
             <li style="width: 100px;"><a id="lnkBatchAdd" runat="server" href="javascript:go()"><span>
                <b style="background-image: url(../../common/images/icons/addnew.gif);">&nbsp;</b><asp:Literal
                    ID="Literal2" runat="server" Text="批量上传"></asp:Literal></span></a></li>      
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/delete.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>           
            <li>
                <asp:Button ID="btnRefresh" runat="server" Text="Button" OnClick="btnRefresh_Click"
                    CssClass="refresh" /><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"
                        CssClass="hide" CausesValidation="False" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblArticleName" Style="margin-left: 10px;" runat="server" Text="Label"
                Font-Bold="true"></asp:Label><asp:Label ID="lblStatistic" runat="server" Text="Label"></asp:Label></div>
    </div>
    <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
    <div id="content">
        <ul class="pic_group">
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <li id="items" runat="server"></li>
                </LayoutTemplate>
                <ItemTemplate>
                    <li><a id='lnk_<%#Eval("ID") %>' class="img" href='<%#Eval("OriginImageAbsPath") %>' target="_blank">

                        <script type="text/javascript">
                            loadImage('<%#Eval("SmallImageAbsPath") %>', 'lnk_<%#Eval("ID") %>', 105, 105, 112)
                        </script>

                    </a>
                        <div title='<%#GetFileName(Eval("Name")) %>'>
                            <asp:CheckBox ID="chkSelect" runat="server" Text='<%#GetFileName(Eval("Name")) %>' /></div>
                    </li>
                </ItemTemplate>
            </asp:ListView>
        </ul>
    </div>
    <div style="clear: both;">
    </div>
</asp:Content>
